import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:study_demo/ui/countdown/controller.dart';

class CountDownPage extends StatelessWidget{

  @override
  Widget build(BuildContext context) {
   return GetX<CountDownController>(
     init: CountDownController(),
     builder:(controller){
       return Scaffold(
         appBar: AppBar(
           title: Text("倒计时"),
         ),
         body: Container(
           alignment: Alignment.center,
           child: Text(controller.timeInfo,style: TextStyle(color: Colors.red,fontSize: 42)),
         ),
       );
     }
   );
  }
}